<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include::header('安全奖励订单')"/>
</head>
<body class="febs-container" id="febs-incentiveGoodsOrder">
<div class="febs-body layui-fluid" lay-title="安全奖i订单">
    <div class="febs-body-search">
        <form class="jhg-body layui-form layui-table-form" lay-filter="incentiveGoodsOrder-table-form"
              id="incentiveGoodsOrder-table-form">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-inline" id="post-tenant"
                             th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                            <label class="layui-form-label layui-form-label-sm">公司名称</label>
                            <div class="layui-input-inline" style="width:280px;">
                                <select name="tenantId" id="tenantId" lay-search="" lay-filter="selectCompany">
                                    <option th:each="item:${tenantList }"
                                            th:value="${item.tenantId}" th:text="${item.tenantName}"
                                            th:selected="${tenantId ==item.tenantId}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">订单类型</label>
                            <div class="layui-input-inline">
                                <select name="goodsOrderType" id="goodsOrderType">
                                    <option value="">请选择</option>
                                    <option value="1">安全奖励</option>
                                    <option value="2">线上申请</option>
                                    <option value="3">线下兑换</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">订单编号</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="orderNo" autocomplete="off" class="layui-input" placeholder="请输入订单编号">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">申请时间：</label>
                            <div class="layui-input-block" id="applyDate">
                                <div class="layui-input-inline" style="width:calc(50% - 18px)">
                                    <input type="text" autocomplete="off" id="applyStartDate"
                                           name="applyStartDate"
                                           class="layui-input" placeholder="请选择开始日期" readonly>
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline" style="width:calc(50% - 18px)">
                                    <input type="text" autocomplete="off" id="applyEndDate"
                                           name="applyEndDate"
                                           class="layui-input" placeholder="请选择结束日期" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">订单状态</label>
                            <div class="layui-input-inline">
                                <select name="status" id="status">
                                    <option value="">请选择</option>
                                    <option value="1">待提交</option>
                                    <option value="2">待领取</option>
                                    <option value="3">已领取</option>
                                    <option value="4">已取消</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div id="query" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 查询
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="febs-table-full">
        <table lay-filter="incentiveGoodsOrderTable" id="incentiveGoodsOrderTable'}"
               lay-data="{id: 'incentiveGoodsOrderTable'}"></table>
    </div>
</div>
<th:block th:include="include::foot"/>
<script type="text/html" id="incentiveGoodsOrder-toolbar">
    <div lay-event="add" class="layui-btn layui-btn-sm" shiro:hasPermission="incentiveGoodsOrder:add">
        <em class="layui-icon">&#xe654;</em> 线下兑现
    </div>
</script>
<script type="text/html" id="incentiveGoodsOrder-tool">
    <span shiro:lacksPermission="incentiveGoodsOrder:handOut,incentiveGoodsOrder:edit,incentiveGoodsOrder:delete">
                <span class="layui-badge-dot febs-bg-orange"></span> 无权限
            </span>
    {{# if(d.status === '2'){ }}
    <a lay-event="handOut" shiro:hasPermission="incentiveGoodsOrder:handOut">
        <em class="layui-icon febs-edit-area febs-blue">发放</em></a>
    {{#  } }}
</script>
<script th:src="@{/febs/js/incentive/incentiveGoodsOrder/incentiveGoodsOrderList.js(v=1)}"></script>
</body>
</html>